package com.gla.entity;

import lombok.NoArgsConstructor;

@NoArgsConstructor
public class Index {
    private int id;
    private int state;
    private int order_id;
    private int commodity;
    private int number;

    private Double price;

    private String create_time;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public int getOrder_id() {
        return order_id;
    }

    public void setOrder_id(int order_id) {
        this.order_id = order_id;
    }

    public int getCommodity() {
        return commodity;
    }

    public void setCommodity(int commodity) {
        this.commodity = commodity;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Index{" +
                "id=" + id +
                ", state=" + state +
                ", order_id=" + order_id +
                ", commodity=" + commodity +
                ", number=" + number +
                ", price=" + price +
                ", create_time='" + create_time + '\'' +
                '}';
    }

    public Index(int id, int state, int order_id, int commodity, int number, Double price, String create_time) {
        this.id = id;
        this.state = state;
        this.order_id = order_id;
        this.commodity = commodity;
        this.number = number;
        this.price = price;
        this.create_time = create_time;
    }
}
